package host.springboot.framework.core.execute.logging;

import host.springboot.framework.core.logging.BaseLogging;
import host.springboot.framework.core.logging.LogComponentProvider;
import host.springboot.framework.core.logging.LoggingComponent;
import lombok.AllArgsConstructor;
import org.jspecify.annotations.NonNull;
import org.slf4j.Logger;

/**
 * 日志组件执行器
 *
 * @author JiYinchuan
 * @since 1.0.0
 */
@AllArgsConstructor
public class LoggingComponentExecutor extends BaseLogging implements LogComponentProvider {

    /**
     * 日志组件
     */
    private final LoggingComponent component;

    @Override
    public @NonNull Logger log() {
        return component.log();
    }

    @Override
    public @NonNull String logTag() {
        return component.logTag();
    }
}
